package com.yjt.admin.system.form;

import com.yjt.admin.system.entity.EmpGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author zzp
 * @since 2021-10-11
 */
@Data
@Accessors(chain = true)
public class EmplyForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "员工id,新增不传")
    private String emplyId;

    @ApiModelProperty(value = "姓名", example = "zzp")
    @NotBlank(message = "姓名不能为空")
    private String emplyName;

    @ApiModelProperty(value = "性别(1男2女)", example = "1")
    @NotNull(message = "性别不能为空")
    private Integer gender;

    @ApiModelProperty(value = "手机号码", example = "15721722861")
    @Pattern(regexp = "^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$", message = "您输入的手机号格式错误！")
    @NotBlank(message = "手机号码不能为空")
    private String mobileNum;

    @ApiModelProperty(value = "身份证号", example = "522626199410253215")
    @Pattern(regexp = "(\\d{15}$)|(^\\d{18}$)|(\\d{17}(\\d|X|x)$)", message = "请输入正确的身份证号码！")
    @NotBlank(message = "身份证号不能为空")
    private String idNo;

    @ApiModelProperty(value = "实际岗位id",example = "1")
    @NotBlank(message = "实际岗位不能为空")
    private String postId;

    @ApiModelProperty(value = "排序", example = "1")
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "所属公司/部门id")
    @NotBlank(message = "所属公司/部门不能为空")
    private String superOrgId;


}
